define(["jquery", "easy-admin"], function ($, ea) {

    var init = {
        table_elem: '#currentTable',
        table_render_id: 'currentTableRenderId',
        index_url: 'jizhan.return_point_order_day/index?uid='+uid,
        add_url: 'jizhan.return_point_order_day/add',
        edit_url: 'jizhan.return_point_order_day/edit',
        delete_url: 'jizhan.return_point_order_day/delete',
        export_url: 'jizhan.return_point_order_day/export',
        modify_url: 'jizhan.return_point_order_day/modify',
        fd_order_day_url: 'jizhan.return_point_order_day/index',
        fd_order_month_url: 'jizhan.return_point_order_day/index',
    };
    var Controller = {

        index: function () {
            ea.table.render({
                init: init,
                cols: [[
                    {type: "checkbox"},
                    {field: 'uid', title: '用户id', search: 'no'},
                    {field: 'real_name',title: '用户名称' , search: 'no'},
                    {field: 'phone',title: '用户号码', search: 'no' },
                    {field: 'jmyc_grade',title: '用户身份', search: 'no' },
                    {field: 'return_day',title: '用户返点金额', search: 'no' },
                    {field: 'day',title: '当前日期', search: 'no' },
                ]],
            });

            ea.listen();
        },
        add: function () {
            ea.listen();
        },
        edit: function () {
            ea.listen();
        },
    };
    return Controller;
});